{% extends 'common/basic_list.html' %}
{% load toolbox_tags %}
{% load table_tags %}
{% block list_title %}
    用户
{% endblock %}
{% block subtitle %}
    <small>
        可使用本系统的用户
    </small>
{% endblock %}
{% block list_filter %}
    <div class="col-sm-4">
        <div class="input-group">
            {% toolbox_add 'user_add/' %}
            &nbsp;
            {% toolbox_batch_delete %}

        </div>
    </div>
{% endblock %}

{% block list_content %}
    <table class="table table-striped table-bordered table-hover dataTables-example dataTable">
        {% table_head "用户@username,邮件@email,有效@is_active" order_by ordering 'width:8%' %}
        <tbody>
        {% for o in result_list %}
            {% table o.id 'user_edit/' o.id o.username o.email o.is_active|bool_to_human %}
        {% endfor %}
        </tbody>
    </table>
{% endblock %}